package net.lzzy.practices.entities;

import lombok.Getter;
import lombok.Setter;
import org.springframework.scheduling.annotation.EnableAsync;

import javax.persistence.*;
import java.util.Date;

/**
 * @author m
 */
@Entity
@Getter
@Setter
public class Applicant  extends  BaseEntity{
    @Transient
//    申请
    public  static  final  int STATUS_APPLYING=0;
    @Transient
//   少选
    public  static  final  int STATUS_APPROVED=1;
    @Transient
//    多选
    public  static  final  int STATUS_DECLINED=2;
   @ManyToOne
    private  User student;
    @ManyToOne
    private Course course;

    //状态 0 申请 1 通过 2 拒绝
    private int status;
    @Temporal(TemporalType.TIMESTAMP)
    private Date applyTime;


}
